define([
  'utils/Conf',
  'models/Message',
  'collections/Collection'
], function(Conf, Message, Collection){
  var Messages = Collection.extend({
    model: Message,
    initialize: function(models, options) {
      Collection.prototype.initialize.call(this, models, options);
      if(options.type == "inbox") {
        this.inbox = true;
        this.url = Conf.routes.messages.inbox;
      } else  {
        this.inbox = false;
        this.url = Conf.routes.messages.outbox;
      }
    }

  });

  return Messages;
});